package org.rcy.framework.security.authentication;

/**
 * @author 吴康桥
 * @Description
 * @date 2022/10/28 15:07
 */


public abstract class AbstractFormToken extends CredentialsToken{

	private static final long serialVersionUID = 1L;
	private String username;

	public AbstractFormToken(String username) {
		this.username = username == null ? "" : username.trim();;
	}

	@Override
	public Object getPrincipal() {
		return this.username;
	}
}
